Fixed document URL problem due to DocumentBuilder refactoring