Fix compilation issue without WANT_PERSISTENCE

Fix compilation issue without WANT_PERSISTENCE