Fixed a reinitialization bug for offline database rdf generation