No longer segfaults when clicking outside the grid.