Fixed some spelling mistakes that were causing bugs