fixed exit portal bug