fix bug for cache set