small fix in Greedy heuristics