fix merkleroot and prevhash memory mix up