gravity and bouncing small fixes