Merge "Fixing wrongly initialized tx_type variable."