cleanup empty selector scopes