diff --git a/core/headerchain.go b/core/headerchain.go
index d9f3b575ad6166d9a550c3666cbd0147391a0a5f..07307c710cae29b4f4c23897be504286c9ef452f 100644
--- a/core/headerchain.go
+++ b/core/headerchain.go
@@ -574,7 +574,7 @@ func (hc *HeaderChain) SetHead(head uint64, updateFn UpdateHeadBlocksCallback, d
 		if parent == nil {
 			parent = hc.genesisHeader
 		}
-		parentHash = hdr.ParentHash
+		parentHash = parent.Hash()
 
 		// Notably, since geth has the possibility for setting the head to a low
 		// height which is even lower than ancient head.