Undo all changes to scan.