Don't set selected cell to null before changing state.