Minor performance fix in circular buffer.