Fixed a bug where indexRows() and indexColumns() were swapped.