Fix bug where you can select non-adjacent dots