Fix ri error, path errors.