fix 1.2 grid crash bug