undoing changes made in the wrong place