fixed issue with passing wrong operation type in batch