Fixed bugs with actor ids and npc selection.