Corrected "Uncaught TypeError".