fix empty pie. fix contribution math.