diff --git a/GPN_BadgeLasertag.ino b/GPN_BadgeLasertag.ino
index 2d5494d7e9efb620a0404541fed530a510783515..3e2850fea459c9a8e88fee5575824731ed457f71 100644
--- a/GPN_BadgeLasertag.ino
+++ b/GPN_BadgeLasertag.ino
@@ -154,7 +154,9 @@ void joinGame() {
     ip = irinput.substring(1, irinput.length() - 1);
     unsigned short firstA = ip.indexOf('a');
     Serial.printf("firstA: %d\n", firstA);
-    ip = ip.substring(firstA, ip.length());
+    if (firstA < 65535) {
+        ip = ip.substring(firstA, ip.length());
+    }
     Serial.printf("Received ip: >%s<\n", ip.c_str());
 
     client = new GameClient(ui, &badge, player);
@@ -166,7 +168,7 @@ void joinGame() {
 }
 
 void loop() {
-    Serial.println("Loop");
+    //Serial.println("Loop");
     ui->dispatchInput(badge.getJoystickState());
     ui->draw();
 
@@ -194,7 +196,7 @@ void loop() {
     if (client) {
         client->update();
     }
-    Serial.println("Loop - Ende");
+    //Serial.println("Loop - Ende");
 }
 
 char *loadNick() {