Fixed some copy-paste and type errors.

some corrections