fix cp.each