diff --git a/src/shared/ActiveObject.h b/src/shared/ActiveObject.h
index 2fdbb68c4d905728841ec773ccb2f1312052d9a8..abecefa32d2ea21381634fa1e7e22d390f0ca1ee 100644
--- a/src/shared/ActiveObject.h
+++ b/src/shared/ActiveObject.h
@@ -92,8 +92,8 @@ protected:
 
     miosix::Thread* thread = nullptr;  ///< Gives access to the thread object
 
-    std::atomic<bool> stopFlag;
-    std::atomic<bool> running;
+    std::atomic<bool> stopFlag{false};
+    std::atomic<bool> running{false};
 
 private:
     /**