Fix URL error after authorize