preserve mid on edits