fix for refreshToken and result as xml