fix contour move issue