     // but I'm not sure
     public var userData = User?()
     
-    private let urlSession = NSURLSession(configuration: NSURLSessionConfiguration.ephemeralSessionConfiguration())
+    private let urlSession = NSURLSession(configuration: .ephemeralSessionConfiguration(), delegate: nil, delegateQueue: NSOperationQueue.mainQueue())
     
 
     // MARK: - Singleton

    
    // MARK: - GET
    public func getSearchWith(text: String, startIndex: Int, resultLimit: Int, _ handler: ([AnimeSubject]?, count: Int, NSError?) -> Void) {
        
        let urlPath = String(format: BangumiApiKey.SearchDetail, text.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!, resultLimit, startIndex, BangumiApiKey.Percolator)
    
        getJsonFrom(urlPath) { (jsonData) -> Void in
            
            UIApplication.sharedApplication().networkActivityIndicatorVisible = false

        do {
            jsonResult = try NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers)
        } catch let error1 as NSError {
            error = error1
            jsonResult = nil
        }
