Fix a crash in cache (again).