fix for contour value sql-null-type