Fix boneheaded bug on 2d cache