fixing falling glitch