Fix way how url are build in resource owners