A little error at AgentNpc selfmade