fix REST call