AppAuthorization bug fix