fixed fatal error if cache does not exist