fix some grid bug