fix jumping glitch