fix single error; fix bugs for PersistenceManager