fixed persistence bug.