Fixes a bug with mouse events and the tile index annotations.