fix spelling errors (issue #6227)