Fixed error for timer.