fix bugs when set cache size.