sorted persistence bug