fix bugs in updateDF

fix bugs and add TopicTrace model.