Fix the bug that results in being unable to align a reconstructed surface and corresponding segmented contour