Fix #1105 Remove scaled_cost