Fixed error in iter_ticks