probably fix for issues #1401 #1402
Merge pull request #1489 from gsomix/feature/libsvm

Probably fix for issues #1401 #1402