Fix statePersister state.bin error