Fixed some bugs with the typo