Fixed bad contours/edges