fix classifier class serialization