fix boolean aggregates