fix bug in batch_ADL.. line 156