fix transaction fee calculation