Aggregates processing changed to get right column number.

This fixes #15.