fixing the index object