fix second levels sometimes going outside of the screen