Fixed wrong state in player due to change of velocity.