fix test_crf bug