Fix bug with double click selection.