Update to the persistence code

(typo corrections)