fix a compatibility bug for identity_cache