Fix location contour bug