SVMs: various fixes