fix countdown bug