Bugfixes for new svm grid classifier.