Fixed a couple of places where ti.next was still being used.