fixed movement bug with stuck going up or down