Fixed a problem in agg heuristic solver.