fix countdown undefined