fixing LengthBatchWindow