* Bug fixes to max_cost strat