     }
 
     func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
-        let sectionCell = tableView.dequeueReusableCellWithIdentifier(SectionReuseIdentifier, forIndexPath: indexPath) as SectionViewCell
+        let view = tableView.dequeueReusableCellWithIdentifier(SectionReuseIdentifier, forIndexPath: indexPath) as SectionView
 
         // TODO: create only visible cells
         let cells = createCells(indexPath.section)
 
         for cell in cells {
-            sectionCell.scrollView.addSubview(cell)
-        }
-
-        let width = cells.last?.frame.maxX ?? sectionCell.frame.width
-        let contentSize = CGSize(width: width, height: sectionCell.frame.height - 1) // TODO: scrolling will be disabled by using delegate
-        sectionCell.scrollView.contentSize = contentSize
-
-        return sectionCell
+            view.scrollView.addSubview(cell)
+        }
+
+        let width = cells.last?.frame.maxX ?? view.frame.width
+        let contentSize = CGSize(width: width, height: view.frame.height - 1) // TODO: scrolling will be disabled by using delegate
+        view.scrollView.contentSize = contentSize
+
+        return view
     }
 }

private let SectionReuseIdentifier = "section"

class SectionViewCell: UITableViewCell {

    let scrollView: UIScrollView = {
        let view = UIScrollView(frame: CGRectZero)

        backgroundColor = UIColor.blueColor()
        autoresizingMask = .FlexibleWidth | .FlexibleHeight
        allowsSelection = false
        registerClass(SectionView.self, forCellReuseIdentifier: SectionReuseIdentifier)
    }
}

