Fixed bug with selection.