fix for custom npcs with custom races not getting calculated