Fix doc restoring.