Fix cc_period_make to not get stuck on samples with matching time