fix cache_indexer state not saved correctly