Fix bug preventing saving of new batches.