                 }
                 
                 // check for special error possibilities
-                if (countExcluded == matches.count) {
+                if (countClassmatch == matches.count) {
                     return callback(RequestError(type: .listError, code: (700 + countClassmatch)), [])
                 }
                 if (countContinue == matches.count) {

                
                if (school.gradelistIndices.count == 0) {
                    for match in matches {
                        var data = Functions.regexSearch(regex: "<th (class=\"tabelleheader\")?(\\s)*align=\"[\\w]*\"(\\s)*(width=\"[\\w%]*\")?(\\s)*scope=\"col\"[\\s]?>((?:(?!</th>)[\\s\\S])*)</th>", text: match)
                        
                        if (data.count == 0) {
                            continue
                        }

                if (countExcluded == matches.count) {
                    return callback(RequestError(type: .listError, code: (900 + countExcluded)), [])
                }

                if (gradelist.count == 0) {
                    return callback(RequestError(type: .listError, code: 619), [])
                }
