fixed support for wrap-around levels in EM engine