Undo irrelevant changes