fix problems with color assignment to contour lines