replaceInherit before filtering.