Fix Persister constructor and undefined property