Fixed types and copy-paste errors.