Fixed bug with transaction fee calculation