Fix undo AGAIN

edit then undo causing the whole record to disappear