Fixed failure when there are no scopes