     }
 
     func mediaWizardController(_ mediaWizardController: MediaWizardController, didTapCloseButton button: UIBarButtonItem) {
+        self.mediaWizardController = nil
         dismiss(animated: true)
     }
 }


extension SectionEditorViewController: SectionEditorInputViewsControllerDelegate {
    func sectionEditorInputViewsControllerDidTapMediaInsert(_ sectionEditorInputViewsController: SectionEditorInputViewsController) {
        let mediaWizardController = MediaWizardController()
        mediaWizardController.delegate = self
        mediaWizardController.prepare(with: theme)
    }
}


    private var messagingController: SectionEditorWebViewMessagingController!
    private var menuItemsController: SectionEditorMenuItemsController!
    private var navigationItemController: SectionEditorNavigationItemController!

    private var mediaWizardController: MediaWizardController?
    
    lazy var readingThemesControlsViewController: ReadingThemesControlsViewController = {
        return ReadingThemesControlsViewController.init(nibName: ReadingThemesControlsViewController.nibName, bundle: nil)
