Fixed a cache refresh bug