fix merkle branch bug