diff --git a/lib/container/docker/template.js b/lib/container/docker/template.js
index <HASH>..<HASH> 100644
--- a/lib/container/docker/template.js
+++ b/lib/container/docker/template.js
@@ -41,7 +41,11 @@ const engine = {
 		payload.TaskTemplate.Resources.Limits.MemoryBytes = options.params.data.memoryLimit;
 		payload.TaskTemplate.RestartPolicy.Condition = options.params.data.restartPolicy.condition;
 		payload.TaskTemplate.RestartPolicy.MaxAttempts = options.params.data.restartPolicy.maxAttempts;
-		payload.Mode[options.params.data.replication.mode.charAt(0).toUpperCase() + options.params.data.replication.mode.slice(1)] = {};
+		
+		if(options.params.data.replication.mode){ // todo: please confirm
+			payload.Mode[options.params.data.replication.mode.charAt(0).toUpperCase() + options.params.data.replication.mode.slice(1)] = {};
+		}
+		
 		payload.Networks[0].Target = ((options.params.data.network) ? options.params.data.network : "");
 		payload.Labels = options.params.data.labels;
 		payload.EndpointSpec = {Mode: 'vip', ports: []};
extra assertion on (replication mode)