Fixed bug in PersistenceManager.