fixed bug affecting issues on batches