fixed issue where ringbuffer could access unassigned memory