Undo unnescessary changes