Fix "Back Button" issue on external documents.