fixed scopes granting failure on refresh