fixed player movement bug