fixed saving on editing