don't crash when walking off screen
fix jittery collision problem