         
         cell.eventNameLabel.text = events[indexPath.row]
         
-        if checked[indexPath.row] == false {
+        if filterCheckmarks[indexPath.row] == false {
             cell.accessoryType = .None
-        } else if checked[indexPath.row] == true {
+        } else if filterCheckmarks[indexPath.row] == true {
             cell.accessoryType = .Checkmark
         }
         

        if let cell = tableView.cellForRowAtIndexPath(indexPath) {
            if cell.accessoryType == .Checkmark{
                cell.accessoryType = .None
                checked[indexPath.row] = false
            } else{
                cell.accessoryType = .Checkmark
                checked[indexPath.row] = true
            }
        }
    }

            
            // Save checked to defaults
            let defaults = NSUserDefaults.standardUserDefaults()
            defaults.setObject(filterCheckmarks, forKey: "filterCheckmarks")
            defaults.synchronize()
        }
    }
