fix svm bug