diff --git a/src/main/java/com/crawljax/util/Helper.java b/src/main/java/com/crawljax/util/Helper.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/crawljax/util/Helper.java
+++ b/src/main/java/com/crawljax/util/Helper.java
@@ -805,7 +805,7 @@ public final class Helper {
 	 * @return The new, correct path.

 	 */

 	public static String addFolderSlashIfNeeded(String folderName) {

-		if (folderName.equals("") || !folderName.endsWith("/")) {

+		if (!folderName.equals("") || !folderName.endsWith("/")) {

 			return folderName + "/";

 		} else {

 			return folderName;
Only add a / if the foldername is not empty.