Fix bug with player movement