reverting previous change when stopping an action