diff --git a/openquake/server/views.py b/openquake/server/views.py
index <HASH>..<HASH> 100644
--- a/openquake/server/views.py
+++ b/openquake/server/views.py
@@ -358,8 +358,7 @@ def run_calc(request):
     user = utils.get_user_data(request)
 
     try:
-        job_id = cmdserver.cmd.start(
-            'submit_job', job_ini, user['name'], hazard_job_id)
+        job_id = cmdserver.submit_job(job_ini, user['name'], hazard_job_id)
     except Exception as exc:  # no job created, for instance missing .xml file
         # get the exception message
         exc_msg = exc.args[0]
Used the CmdServer as a library in the web UI