Few small fixes in SVM