     }
 
     override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
-        if let f = feed { subscribeTo(f, category: categories[indexPath.item]) }
+        subscribeTo(categories[indexPath.item])
     }
 }

    func createCategory(label: String) {
        if let profile = FeedlyAPIClient.sharedInstance.profile {
            let category = FeedlyKit.Category(label: label, profile: profile)
            if let f = feed { subscribeTo(f, category: category) }
        }
    }

    func subscribeTo(feed: Feed, category: FeedlyKit.Category) {
        MBProgressHUD.showHUDAddedTo(view, animated: true)
        FeedlyAPIClient.sharedInstance.client.subscribeTo(feed, categories: [category]) { (req, res, error) -> Void in
            MBProgressHUD.hideHUDForView(self.view, animated:false)
            if let e = error {
                let ac = FeedlyAPIClient.alertController(error: e, handler: { (action) in })
                self.presentViewController(ac, animated: true, completion: nil)

class CategoryTableViewController: UITableViewController {
    let client = FeedlyAPIClient.sharedInstance
    var categories: [FeedlyKit.Category] = []
    var HUD: MBProgressHUD!
    let subscribable: Subscribable!

    init(subscribable: Subscribable) {
        self.subscribable = subscribable
        super.init(nibName: nil, bundle: nil)
    }

    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }

    override func viewDidLoad() {
        super.viewDidLoad()
