diff --git a/src/vitis/vas/util/printserver/server/printtemplate.js b/src/vitis/vas/util/printserver/server/printtemplate.js
index 5c92f88989d67e18cd74d3a3b137093a2522aafb..572fdc3c7f3239ddc171aeb0d93e0a8d5fc1c4cf 100755
--- a/src/vitis/vas/util/printserver/server/printtemplate.js
+++ b/src/vitis/vas/util/printserver/server/printtemplate.js
@@ -40,6 +40,7 @@ if (system.args.length < 1) {
     var sOrientation = system.args[8];
     var sIncludes = system.args[9];
     var sScope = system.args[10];
+    var sQuality = system.args[11];
 
     // Si sIncludes est un fichier
     if (fs.exists(sIncludes)) {
@@ -60,7 +61,6 @@ if (system.args.length < 1) {
     } catch (e) {
         var oScope = {};
     }
-    var sQuality = system.args[10];
 
     // Orientation
     if (sOrientation === 'paysage') {
@@ -93,7 +93,7 @@ if (system.args.length < 1) {
             console.log('Unable to load the sPrintClientURL, status:', status);
             phantom.exit(1);
         } else {
-            
+
             // Bug PhantomJS 2.0: Sur linux les tailles sont mal définies
             page.evaluate(function (osName) {
                 if (osName === 'linux') {
@@ -103,7 +103,7 @@ if (system.args.length < 1) {
 
             /**
              * Render the target from page at the given quality
-             * @param {number} sQuality Specify 0 to obtain small compressed files, 100 for large 
+             * @param {number} sQuality Specify 0 to obtain small compressed files, 100 for large
              * @param {string} sOutputFileName file name
              * @returns {boolean}
              */
@@ -161,4 +161,4 @@ if (system.args.length < 1) {
             }, printLoadTimeout);
         }
     });
-}
\ No newline at end of file
+}