minor fix: ensure that buffer wrapping does not affect consistency of window start and end pointers in window batches