fixed x and y velocities when attaching to ground, see #159