grid bug fix