add missing static
Merge pull request #60 from tzik/aggregate_fix

add missing static