fixed bug where last cell was selectable