Random Black Square

Sometimes when I edit a tile map object, a random black square will appear in one of the grid spots. Is there any way to fix this?

It’s happening because you accidentally click one of the grid when you open the editor (Or not black square, but upper left corner image of the tile sheet). I have encounter the problem when I open the tilemap editor using double click and the editor window and the grid is right under the mouse cursor.