Fix repr and indexing