 extension PagingMenuController: Pagable {
     public var currentPage: Int {
         switch options.componentType {
-        case .MenuView: return menuView.currentPage
-        default: return pagingViewController.currentPage
+        case .MenuView: return menuView?.currentPage ?? currentPage
+        default: return pagingViewController?.currentPage ?? currentPage
         }
     }
     

        let page: Int
        switch (currentPagingViewPosition, options.componentType) {
        case (.Left, .PagingController): page = previousPage
        case (.Left, _): page = menuView.previousPage
        case (.Right, .PagingController): page = nextPage
        case (.Right, _): page = menuView.nextPage
        default: page = pagingViewController.currentPage
        }
        
        return page
    }
    
    var nextPageFromCurrentPoint: Int {
        let point = CGPointMake(menuView.contentOffset.x + menuView.frame.width / 2, 0)
        for (index, menuItemView) in menuView.menuItemViews.enumerate() {
            guard CGRectContainsPoint(menuItemView.frame, point) else { continue }

        
        let duration = animated ? options.animationDuration : 0
        UIView.animateWithDuration(duration, animations: {
            () -> Void in
            pagingViewController.positionMenuController()
            }) { [weak self] (_) -> Void in
                guard let _ = self else { return }
                
                pagingViewController.relayoutPagingViewControllers()
                
                // show paging views
                self!.showPagingMenuControllers()
