Correction to contour algorithm using no approximation