Fixed error level check in batches.