fixed grid_debug