fixes to SVMlearner