Fix filtering on parent_id