Fixed Nullpointer with NPCs