Do not ignore the existing root during filtering by relations if there is any