Fixes for representative indexing.