Fixed another ring buffer bug.