fix ConsumedUnit.count > 0 issue