diff --git a/turbo/stages/headerdownload/header_algos.go b/turbo/stages/headerdownload/header_algos.go
index e9695a596f3631ea27b917a0488d85b2ab20a2cb..e715ecf880ee995125d9abe9ad2ecd4d23d3426c 100644
--- a/turbo/stages/headerdownload/header_algos.go
+++ b/turbo/stages/headerdownload/header_algos.go
@@ -936,7 +936,7 @@ func (hi *HeaderInserter) ForkingPoint(db kv.StatelessRwTx, header, parent *type
 			if err != nil {
 				return 0, fmt.Errorf("[%s] reading canonical hash for %d: %w", hi.logPrefix, ancestorHeight, err)
 			}
-			if ch != ancestorHash {
+			if ch == ancestorHash {
 				break
 			}
 			ancestor, err := hi.headerReader.Header(context.Background(), db, ancestorHash, ancestorHeight)