diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py
index d941dc2aebfd46aa2d9488544aea451febc2bc37..0776feb8785217c5f2bde77888ff8007230721e1 100644
--- a/precision_drawing_tools/pdt_command.py
+++ b/precision_drawing_tools/pdt_command.py
@@ -228,6 +228,7 @@ def command_run(self, context):
     if operation == "M":
         try:
             command_maths(context, mode, pg, command[2:], mode)
+            return
         except PDT_MathsError:
             return