Fixed bug: was fetching from wrong class when using one-vs-all classifier.