fix countdown implementation