fixed a bug with the one-vs-all option