Npc rotating detection bug fix