wd: fixed to get the changed values correctly