Fix cost of fold operation