fixes for binary svm