fix bug in chain.bin