undo script changes