diff --git a/src/blc_loop.cpp b/src/blc_loop.cpp
index 285b0a69a76b2797d9dae3a45f6453b44fc8db1b..09f683b31e7f70852e01e6cc658efdf3a400b807 100644
--- a/src/blc_loop.cpp
+++ b/src/blc_loop.cpp
@@ -223,7 +223,7 @@ void blc_command_loop_init(long loop_period){
     blc_command_add("|", (type_blc_command_cb)blc_command_send_to_stdout, "command", "send the command to stdout", NULL);
     blc_command_add("&", (type_blc_command_cb)blc_command_send_to_all, "command", "intepret caommdn and send it to stdout", NULL);
 
-    SYSTEM_ERROR_CHECK(pthread_create(&loop_thread, NULL, command_thread_interpret_loop, NULL), -1, NULL);
+    BLC_PTHREAD_CHECK(pthread_create(&loop_thread, NULL, command_thread_interpret_loop, NULL), NULL);
 }
 
 int blc_command_loop_start(){