tick counter fix