Revert to the previous state