fixed cache clear when restoring