fix svm struct api bugs