diff --git a/molgenis-dataexplorer/src/main/java/org/molgenis/dataexplorer/controller/DataExplorerController.java b/molgenis-dataexplorer/src/main/java/org/molgenis/dataexplorer/controller/DataExplorerController.java
index <HASH>..<HASH> 100644
--- a/molgenis-dataexplorer/src/main/java/org/molgenis/dataexplorer/controller/DataExplorerController.java
+++ b/molgenis-dataexplorer/src/main/java/org/molgenis/dataexplorer/controller/DataExplorerController.java
@@ -148,10 +148,10 @@ public class DataExplorerController extends MolgenisPluginController
 				checkExistsAndPermission(selectedEntityName, message, entityExists, hasEntityPermission);
 			}
 		}
-		if (StringUtils.isNotEmpty(model.toString()))
+		if (StringUtils.isNotEmpty(message.toString()))
 		{
-		model.addAttribute("warningMessage", message.toString());
-	}
+			model.addAttribute("warningMessage", message.toString());
+		}
 		model.addAttribute("selectedEntityName", selectedEntityName);
 		model.addAttribute("isAdmin", SecurityUtils.currentUserIsSu());
Fix #<I>: Fileingest does not show "target" anymore