Correcting the delete operation