Repair broken delete functionality