fix variable_table's aggregates interface