$select-res fix (uses $matched-ont-class instead of $resource now)