diff --git a/server.py b/server.py
index 2adc7ae25261bb566cdb5f20cf308e6fb2512979..c1acb762a5d68aa01806c17f244030fbff0e2071 100755
--- a/server.py
+++ b/server.py
@@ -326,7 +326,7 @@ def new_default_top(protocoltype):
         for protocol in protocoltype.protocols:
             if not protocol.done:
                 localtop = LocalTOP(protocol_id=protocol.id,
-                    defaulttop_id=defaultop.id, description="")
+                    defaulttop_id=defaulttop.id, description="")
                 db.session.add(localtop)
         db.session.commit()
         flash("Der Standard-TOP {} wurde für dem Protokolltyp {} hinzugefügt.".format(defaulttop.name, protocoltype.name), "alert-success")