Fixed the count down timer function.