x movement bug fix