Fix a bounds-checking bug when clicking