Small table index bugfix