fix selection with SelectionUnit=CellOrRowHeader

There was still an issue with SelectionUnit=CellOrRowHeader. This should fix this. thx to @Gimly