fixed a bug when using DBpedia as KB