fix batch range