fixed index persistence bug