fix issues in merkledag