fixed changing numbers on instances while they were being deleted