diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php
index <HASH>..<HASH> 100644
--- a/mod/lesson/locallib.php
+++ b/mod/lesson/locallib.php
@@ -2756,7 +2756,7 @@ class lesson extends lesson_base {
                     $result->newpageid = $page->nextpageid;
                 }
             } else {
-                $result->newpageid = $lesson->cluster_jump($page->id);
+                $result->newpageid = $this->cluster_jump($page->id);
             }
         }
         return $result;
MDL-<I> lesson: Replace old var reference by self