fix boolean aggregates

What is the purpose of the index field?