diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp
index e1ce10deb27788bad9cd8ef26baa4398fe5b11ca..a78f2b56c4136f3945e0152e790cca00a63294fb 100644
--- a/src/Services/EventActionService.cpp
+++ b/src/Services/EventActionService.cpp
@@ -19,7 +19,7 @@ void EventActionService::addEventActionDefinitions(Message& message) {
 			}
 		}
 	}
-	if (message.dataSize - 6 > ECSS_TC_REQUEST_STRING_SIZE) {
+	if ((message.dataSize - 6) > ECSS_TC_REQUEST_STRING_SIZE) {
 		canBeAdded = false;
 		ErrorHandler::reportInternalError(ErrorHandler::MessageTooLarge);
 	}