fix issue of grid