Fix tick counting, last_tick=0 when resetting