instances can now be deleted correctly