     }
     
     var siteURL: URL? {
-        return searchLanguageBarViewController.currentlySelectedSearchLanguage?.siteURL() ?? NSURL.wmf_URLWithDefaultSiteAndCurrentLocale()
+        return searchLanguageBarViewController?.currentlySelectedSearchLanguage?.siteURL() ?? NSURL.wmf_URLWithDefaultSiteAndCurrentLocale()
     }
     
     @objc func search() {

        return searchBar
    }()
    
    lazy var searchLanguageBarViewController: SearchLanguagesBarViewController = {
        let searchLanguageBarViewController = SearchLanguagesBarViewController()
        searchLanguageBarViewController.apply(theme: theme)
        addChildViewController(searchLanguageBarViewController)
        searchLanguageBarViewController.view.isHidden = true
        view.addSubview(searchLanguageBarViewController.view)
        searchLanguageBarViewController.didMove(toParentViewController: self)
        return searchLanguageBarViewController
    }()
    
    func setSearchVisible(_ visible: Bool, animated: Bool) {
        let completion = { (finished: Bool) in

        }
        searchBar.apply(theme: theme)
        searchBarContainerView.backgroundColor = theme.colors.paperBackground
        searchLanguageBarViewController?.apply(theme: theme)
        resultsViewController.apply(theme: theme)
        view.backgroundColor = .clear
        collectionView.backgroundColor = theme.colors.paperBackground
