Npc keeps doubling?

The problem is when i edit the npcshop and i save it while the server is running, the npc doubles, like literally its almost as every time i edit and save it spawns a new npc with it.
Is there anyway to stop this? Theres no errors in console.