fixed document bundling bug