Fixing non-manifold parts