fix clear-cache bug