Fix bug in persister causing to persist last configuration in a loop.