fix bug: check time more than one time