fixed side effects of change to getClassifier method.