Fixed type in raising type errors.