Scopes targetClass correctly