fix bug for reset countdown variable