Fixes a cell deselection logic error