fixed history undo redo issue with label tag