Bug fix on cache update.