TableController: fix row indexing

[#62270766]