Fix crash in block cache