bugfix: selection state pops up where the mouse is