fix append contour points bug