fix bug that makes it go horribly wrong in case it can't read cache