SVM bug fix