diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
index b66f71e2c1ef18b583ed54d6c1093783216efedf..19ad6b1ca0f33289a8b878cfa195fb684acba4dc 100644
--- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
+++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
@@ -1373,6 +1373,7 @@ abstract class AbstractMenuContentObject
                     // Checking if "&L" should be modified so links to non-accessible pages will not happen.
                     if ($this->conf['protectLvar']) {
                         if ($languageId && ($this->conf['protectLvar'] === 'all' || GeneralUtility::hideIfNotTranslated($data['l18n_cfg']))) {
+                            $tsfe = $this->getTypoScriptFrontendController();
                             $olRec = $tsfe->sys_page->getPageOverlay($data['uid'], $languageId);
                             if (empty($olRec)) {
                                 // If no page translation record then page can NOT be accessed in