fix bug of delay seconds