commit fix from QuantLib master branch