diff --git a/src/main/java/de/tlc4b/TLC4B.java b/src/main/java/de/tlc4b/TLC4B.java
index 403a33a48e66c1783403780c150e6dbc2be1ce87..81a544fd88d4c88bb476cb689b1966096b455a58 100644
--- a/src/main/java/de/tlc4b/TLC4B.java
+++ b/src/main/java/de/tlc4b/TLC4B.java
@@ -40,7 +40,6 @@ import static de.tlc4b.MP.*;
 public class TLC4B {
 	private static final String CSV_DELIMITER = ";";
 
-	private String filename;
 	private File mainfile, traceFile;
 	private String machineFileNameWithoutFileExtension;
 	// e.g. Test of file foo/bar/Test.mch
@@ -272,7 +271,7 @@ public class TLC4B {
 			if (remainingArgs.length != 1) {
 				throw new TLC4BIOException("Main machine required!");
 			} else {
-				filename = remainingArgs[0];
+				mainfile = new File(remainingArgs[0]);
 			}
 
 			TLC4BGlobals.setVerbose(line.hasOption(VERBOSE.arg()));
@@ -401,7 +400,6 @@ public class TLC4B {
 	}
 
 	private void handleMainFileName() {
-		mainfile = new File(filename);
 		if (!mainfile.exists()) {
 			throw new TLC4BIOException("The file " + mainfile.getPath() + " does not exist.");
 		}