Fixed bug on cache.