Fix to allow batches with notes to be deleted