fix bug: clicking cancel on countdown duration dialog would set countdown duration to zero