fix clear cache issue