Fix issue stopTimer function.