change the way of version detect for undo persistence