Fixed compile error with ringbuffer