fix spelling errors in some code