Fixed index options bug.

Index options should change to integer.
Merge pull request #15 from yuanying/fixed-index-options-bug

Fixed index options bug.