Fix velocity so that when no movement is happening, the surfaces are flat