SVM ref fix