Fix some player movement problem.