fixes contours