integrate patch from
https://code.google.com/p/xdocreport/issues/detail?id=180