undo metadata changes