Fix for: "Can't find variable: container" when using NavigationWindow