Cells can now be selected correctly in selection mode