diff --git a/scripts/run_command b/scripts/run_command
index 99655d3ba457cff30576d0ba88614e9a5785568a..0d05a4de0fda95dbbe6722e7e4819f191da4454a 100755
--- a/scripts/run_command
+++ b/scripts/run_command
@@ -54,7 +54,7 @@ class RosShell(InteractiveConsole):
         try:
             c = code.compile_command(source, filename, symbol)
             if c:
-                return InteractiveConsole.runcode(self, c)
+                return self.runcode(c)
             else:
                 return True
         except SyntaxError, OverflowError: