Fixed typos in the code