debug the grid button bug