Fix broken tick loop