Fix interaction with selection.