fixing cache loading problem