diff --git a/src/line/highlight.js b/src/line/highlight.js
index e835aa0411ce907106a0f1d16f350bfb262f1fe7..430d86a2243a61f7a161ad2b5acba00dab57ae35 100644
--- a/src/line/highlight.js
+++ b/src/line/highlight.js
@@ -33,7 +33,7 @@ class Context {
 
   static fromSaved(doc, saved, line) {
     if (saved instanceof SavedContext)
-      return new Context(doc, copyState(doc.mode, saved.saved), line, saved.lookAhead)
+      return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead)
     else
       return new Context(doc, copyState(doc.mode, saved), line)
   }