fix bugs for training with SVM Light