Fixed a bug with the persistence parameter.