Fixes invalid reference for cache key