Fixed BIND for aggregates to work