Fix an issue in cache dependencies