turn output NaN to 0 on summary