fixed unitialized variable in grid.c cuz_fill_pat_gd