fixbug: timer not fired when time's up