diff --git a/structr-core/src/main/java/org/structr/schema/compiler/BlacklistSchemaNodeWhenMissingPackage.java b/structr-core/src/main/java/org/structr/schema/compiler/BlacklistSchemaNodeWhenMissingPackage.java
index <HASH>..<HASH> 100644
--- a/structr-core/src/main/java/org/structr/schema/compiler/BlacklistSchemaNodeWhenMissingPackage.java
+++ b/structr-core/src/main/java/org/structr/schema/compiler/BlacklistSchemaNodeWhenMissingPackage.java
@@ -23,6 +23,7 @@ import java.util.regex.Pattern;
 import org.structr.common.error.ErrorToken;
 import org.structr.common.error.FrameworkException;
 import static org.structr.core.GraphObject.logger;
+import org.structr.core.graph.FlushCachesCommand;
 import org.structr.schema.SchemaService;
 
 /**
@@ -46,6 +47,7 @@ public class BlacklistSchemaNodeWhenMissingPackage implements MigrationHandler {
 				logger.info("Identified missing package {}, blacklisting entity {}", matcher.group(1), errorToken.getType());
 
 				SchemaService.blacklist(errorToken.getType());
+				FlushCachesCommand.flushAll();
 			}
 		}
 	}
Minor fix: Adds a call to FlushCachesCommand.flushAll() to make sure the blacklisted class is really gone when recompiling the schema.