fix edged case bug
Merge pull request #6 from i110/fix/index_edge_case

fix edged case bug