fixed initialization of flag for wrap-around levels in EM engine