Fix ring buffer example.