fix wddiff()