fix refresh cache bug