fix bugs in NER