fix to contour haar wavelets