ii: fix wrong max segment

Redmine: fixes #2438

Reported by yoku0825. Thanks!!!
Merge pull request #161 from groonga/fix-wrong-ii-max-segment

ii: fix wrong max segment