Sort out negative cost estimations.