Fix new documents paths in the viewer