Fix compilation issue without WANT_PERSISTENCE

Fix compilation issue without WANT_PERSISTENCE
Merge pull request #1 from SpiderX/master

Fix compilation issue without WANT_PERSISTENCE