fix some bug about timers