fixed some problems in rdf parsing