fix url to uri on function call