fix cost function calc bugs with per-team fielddistrib control