fix update after edit