aggregate goals bugfix