Fix max callstack issue
Merge pull request #190 from mapbox/fix-index

Fix max callstack issue