fixed bugs in lsvms.py