fix #74 integer division in profile and contour bound