Fixed the time counter