Fixed SVM classifier bugs.