corrected movement bug