fix bug when time is no more than 1 second