Fixes selection of single rows by index instead of node

Selecting rows using an index only worked with arrays, not using a single integer as parameter. This should fix that.