Fixed index options bug.

Index options should change to integer.