quick fix for upper bound index check
Merge pull request #10 from packfire/develop

quick fix for upper bound index check