diff --git a/inc_functions.sh b/inc_functions.sh
index 93e2482fc81bc85dc9a5093982ba93b993fd6183..6636386d1ecf12305db9e3229479ab5bed93753d 100644
--- a/inc_functions.sh
+++ b/inc_functions.sh
@@ -110,11 +110,11 @@
     # icon=/images/icon.png
     # max_check_attempts=3
 
-    checkName=$(cat "$_myconfig" | grep ^checkname= | cut -f 2 -d "=" | sed 's# #_#g')
-    checkCommand=$(cat "$_myconfig" | grep ^command_$MY_NAME= | cut -f 2 -d "=")
-    test -z "$checkCommand" && checkCommand=$(cat "$_myconfig" | grep ^command= | cut -f 2 -d "=")
+    checkName=$(cat "$_myconfig" | grep ^checkname= | cut -f 2- -d "=" | sed 's# #_#g')
+    checkCommand=$(cat "$_myconfig" | grep ^command_$MY_NAME= | cut -f 2- -d "=")
+    test -z "$checkCommand" && checkCommand=$(cat "$_myconfig" | grep ^command= | cut -f 2- -d "=")
     checkInterval=$(cat "$_myconfig" | grep ^interval= | cut -f 2 -d "=")
-    checkIcon=$(cat "$_myconfig" | grep ^icon= | cut -f 2 -d "=")
+    checkIcon=$(cat "$_myconfig" | grep ^icon= | cut -f 2- -d "=")
     checkMaxAttempts=$(cat "$_myconfig" | grep ^max_check_attempts= | cut -f 2 -d "=")
   }