fix commit-batch on batch commands