Fixed uri passing for api calls