fix reset of cache size