Correctly swaps to the next bucket as the first one gets full.