Fix regression in edge_credit.