Fix bug of entity rotation.