bug fix in svm.py