diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index 0c6f9d8..c430328 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -4951,7 +4951,7 @@ ussd_send (MMModemGsmUssd *modem,
         mm_callback_info_schedule (info);
         return;
     }
-    atc_command = g_strdup_printf ("+CUSD=1,\"%s\",%d", hex, scheme);
+    atc_command = g_strdup_printf ("+CUSD=1,\"%s\",%d", command, scheme);
     g_free (hex);
 
     mm_at_serial_port_queue_command (port, atc_command, 10, ussd_send_done, info);
