Fixed issue with sorting + row selection.