Indexing fix: buildIndex() was leading to corrupted index values when more than one field was indexed.
Merge pull request #4 from mikaelgrave/buildindex-fix

Indexing fix: buildIndex() was leading to corrupted index values when more than one field was index