Fixed error with authorize url