fix persisting