fix selecting an item with the mouse