Fixed bug in iter_ticks with unset end argument