fixing paths for document files