diff --git a/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py b/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py
index acd71762353fa4a2624deeddbc41d710e03d8aec..c82514266445330690470c70d2e74caedebb1ee7 100644
--- a/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py
+++ b/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py
@@ -101,9 +101,9 @@ class RkiVaccinationImport(db.Model):
                         from
                             rki_vaccination_data
                         left join
-                            rki_vaccination_date_reported
+                            rki_vaccination_datereported
                         on
-                            rki_vaccination_data.date_reported_id=rki_vaccination_date_reported.id
+                            rki_vaccination_data.date_reported_id=rki_vaccination_datereported.id
                         group by 
                             rki_vaccination_import.datum
                         order by
diff --git a/src/covid19/blueprints/who/who_model_import.py b/src/covid19/blueprints/who/who_model_import.py
index ba0cd3b03e9e0186ebccb4f25e51c58898d188cf..48573d592a543dade8b0fa1ed9ed5f4e46f3aa72 100644
--- a/src/covid19/blueprints/who/who_model_import.py
+++ b/src/covid19/blueprints/who/who_model_import.py
@@ -86,17 +86,17 @@ class WhoImport(db.Model):
                 not in (
                     select
                         distinct
-                            who_date_reported.date_reported
+                            who_datereported.date_reported
                         from
                             who
                         left join
-                            who_date_reported
+                            who_datereported
                         on
-                            who.date_reported_id=who_date_reported.id
+                            who.date_reported_id=who_datereported.id
                         group by 
-                            who_date_reported.date_reported
+                            who_datereported.date_reported
                         order by
-                            who_date_reported.date_reported desc
+                            who_datereported.date_reported desc
                 )
                 group by
                     application__import__who.date_reported