fix #10222 remove elements from parts set to avoid model instances to be returned