fixing error in way batches are being set to complete