fixed the bug that player will rotate even he is not moving