fixed a bug in face_recognizer.cpp