fixed contour plot bugs