Fix of BIH tree construction.