[scg] Fixed problem with contour in contour (#173)