Fix fee calculation