Fixed agg logs bugs