batch generation minor fix