Fix --index

Somehow I overlooked this.