Corrected typos in code