Fixed bad filtering by refreshing selected items

[#74036168]