fixing the delete of ore nodes