diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go
index f2ba5cdb040ef96b9436c5c6d85e83c6db12f4d8..15c94e6d539014c960990ced58e800587036f43d 100644
--- a/consensus/bor/bor.go
+++ b/consensus/bor/bor.go
@@ -1086,7 +1086,7 @@ func (c *Bor) CommitStates(
 	}
 
 	from := *lastSync
-	to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-1).Time), 0)
+	to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-c.config.Sprint).Time), 0)
 	lastStateID := _lastStateID.Uint64()
 	if !from.Before(to) {
 		return nil