Fix the bug that the three parameters get updated before countdown ends.