fix meshing contours