Fix hang in union->filter->remove->union->...