Fixed issue with the delete command