Fix view of documents