fix multiple cursors appearing when selecting a completion for an element name