fix cache_set for None