Fix small contour bug