Fix tx fee calculation