apply goal heuristics bug fix for case where costs change