fixed bug for test set