Fixed the typo error before saving the file