fix horizontal physics glitch