      - parameter section: The section index.
      */
     fileprivate func collectionViewForSection(_ section: Int) -> UICollectionView? {
-        let tableIndexPath = IndexPath(row: 0, section: section)
-        let collectionViewCell = self.tableView.cellForRow(at: tableIndexPath) as? CollectionViewCell
-        return collectionViewCell?.collectionView
+        return self.collectionViews[section]
     }
     
     /**

    public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let section = indexPath.section
        let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! CollectionViewCell
        
        cell.registerNibsAndClassesForIdentifiers(
            self.registeredNibsAndClasses,

    
    /// The internal table view.
    internal var tableView: UITableView!
    
    /// An array to keep of the collection views for every section
    fileprivate var collectionViews: [UICollectionView?] = []
    
    /// The delegate of the sectioned table view.
    open var delegate: CollectionTableViewDelegate?
