fix fatal error if no cache is set