Restoring doc to previous configuration