round buffer fix