Fixed some copy-paste and type errors.