diff --git a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/AbstractImageGenerator.java b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/AbstractImageGenerator.java
index 16e997154b53d5419fbf41c379f9d409dd39ac33..4841de9b38bb51a02959f7c75562d910e30384a9 100644
--- a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/AbstractImageGenerator.java
+++ b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/AbstractImageGenerator.java
@@ -739,7 +739,7 @@ public abstract class AbstractImageGenerator {
 		// be
 		// visible.
 
-		if (compartment.getVisibilityLevel() > level) {
+		if (compartment.getVisibilityLevel() > level && params.nested) {
 			return;
 		}
 
@@ -821,7 +821,7 @@ public abstract class AbstractImageGenerator {
 		// VisibilityLevel is big enough, then it is
 		// displayed.
 
-		if (species.getVisibilityLevel() > level) {
+		if (species.getVisibilityLevel() > level && params.nested) {
 			return;
 		}
 
diff --git a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/BioEntityConverter.java b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/BioEntityConverter.java
index 0f3fbea1f767125d5922bbed62ae53ee300e4999..18ddccbf22573d7029c07b0229f6f48059ca165c 100644
--- a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/BioEntityConverter.java
+++ b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/BioEntityConverter.java
@@ -173,11 +173,9 @@ public abstract class BioEntityConverter<T extends AnnotatedObject> {
 				} else if (!isAnyReactantVisible(((Reaction) bioEntity).getReactants(), params)) {
 					result = false;
 				}
-
 			} else {
 				throw new InvalidArgumentException("Unknown class type: " + bioEntity.getClass());
 			}
-
 			return result;
 		}
 		return true;