Fix bug in svm, add result