Fixing path issue with document loading.