fixed cache delegate bug