fix tick.c