Fix small bug in record delete action