Fix contour lines plugin