fixing npc server update bug