fix for aggegates