diff --git a/conf/e4/config.xml b/conf/e4/config.xml
index adf355157..641bfb25b 100644
--- a/conf/e4/config.xml
+++ b/conf/e4/config.xml
@@ -58,7 +58,6 @@
-
diff --git a/src/jsreport.c b/src/jsreport.c
index 2ea46b678..e9fb5ee3f 100644
--- a/src/jsreport.c
+++ b/src/jsreport.c
@@ -58,7 +58,7 @@ static int report_json(const char *filename, report_context * ctx, const char *c
sr = find_seen(ctx->seen, r);
if (sr) {
terrain_t ter = oldterrain(r->terrain);
- if (ter != NOTERRAIN) {
+ if (ter == NOTERRAIN) {
log_warning("report_json: %s has no terrain id\n", r->terrain->_name);
}
data = 1 + (int)ter;