diff --git a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
index ee7d781f7a1d3a0c00ff46c87ab76971369f92d6..3cfb1b47baccae96345c682cc8acd000919fb62d 100644
--- a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
+++ b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
@@ -44,8 +44,8 @@ vars.get("$local.changed").forEach(function(fieldName) {
             else if (state == $KeywordRegistry.salesprojectState$order())
             {
                 // set all competitions of the salesproject to lost
-                newWhere("OFFER.OBJECT_ROWID", "$local.uid")
-                    .and("OFFER.OBJECT_TYPE", ContextUtils.getCurrentContextId())
+                newWhere("COMPETITION.OBJECT_ROWID", "$local.uid")
+                    .and("COMPETITION.OBJECT_TYPE", ContextUtils.getCurrentContextId())
                     .updateData(true, "COMPETITION", ["STATUS"], null, [$KeywordRegistry.competitionState$lost()]);
                     
                 _updateReasons();