fixed eclipse bug in NPC