Corrected typo in call to parseInt