Corrected inference of INode based on selection.