fixing the batch start idx