Various typo bug fixes

I fixed typos that were causing problems