Fix rest service call