fixing restore cache