Fixed debug contours printing, which caused crash