same bug fix for editUser