gridded bug fix