Improved handing of close values in fold.