mini-fix in RingBuffer