diff --git a/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts b/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts
index c728d5ab785878da794fe70c665874cfc6da81a9..00215301ae2cac6352adb41a152f64fcceeea91f 100644
--- a/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts
+++ b/NodeApp/src/commander/exercise/subcommands/ExerciseCreateCommand.ts
@@ -92,7 +92,7 @@ class ExerciseCreateCommand extends CommanderCommand {
             if ( options.clone ) {
                 console.log(chalk.cyan('Please wait while we are cloning the repository...'));
 
-                await GitlabManager.cloneRepository(options.clone, assignment.gitlabCreationInfo.ssh_url_to_repo, `DojoExercise - ${ exercise.assignmentName }`, true, 0);
+                await GitlabManager.cloneRepository(options.clone, exercise.gitlabCreationInfo.ssh_url_to_repo, `DojoExercise - ${ exercise.assignmentName }`, true, 0);
             }
         }
     }