fixed bug in clear cache