update check overlapping contours bug fix