Fixed bug with selection of cells.