fixbug about initializing seed struct and chain struct.