diff --git a/src/app/contentManagement/controllers/JnlpController.php b/src/app/contentManagement/controllers/JnlpController.php
index 0ed0d2ebabe4f57533f73b8b17b5ede144ef23f0..d9f5afd4ae7a4d29494bf16bad9d2848cc2938fe 100755
--- a/src/app/contentManagement/controllers/JnlpController.php
+++ b/src/app/contentManagement/controllers/JnlpController.php
@@ -288,7 +288,7 @@ class JnlpController
             fwrite($file, $fileContent);
             fclose($file);
 
-            if (!empty($data['step']) && $data['step'] == 'end') {
+            if (!empty($body['step']) && $body['step'] == 'end') {
                 if (file_exists("{$tmpPath}{$GLOBALS['id']}_maarchCM_{$args['jnlpUniqueId']}.lck")) {
                     unlink("{$tmpPath}{$GLOBALS['id']}_maarchCM_{$args['jnlpUniqueId']}.lck");
                 }