Fixed type errors.