Revert to code for badiff core 1.1.9