     }
     
     func fetchData(query: String) {
-        searchProgress = 0
+        self.searchProgress = 0
         for type in searchTypes {
         System.endpointRequestQueue.cancelAllEndpointRequestsOfType(type: type.endpointType)
             let request = type.endpointType.init(modelPath: type.path, query: query, offset: 0, max: pageSize)

                self.completingNewSearch = false
                if self.searchProgress == 3 {
                    self.delegate?.refreshController(searchType: type)
                }
            }
            request.failure = { _ in


        searchResultsTableView = EmptyStateTableView(frame: .zero, type: .search, style: .grouped)
        
        searchResultsTableView.dataSource = tableViewData
        searchResultsTableView.delegate = tableViewData
        
        searchResultsTableView.startLoadingAnimation()
