fixed bug in edit which sometimes would not remove the old value