diff --git a/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl b/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
index 9a525101ccdaa29d3a0691c4f897c9306ed240c3..d6b6d60423ac85a6556a143ef7a7f27d3eebaef0 100644
--- a/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
+++ b/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
@@ -196,7 +196,7 @@
                 <#assign buttonEditFutureClasses='text-black hidden'/>
             </#if>
 
-            <#if isEdit>
+            <#if isEdit && actualOccurrenceTransactionId??>
                 <@header.buttonLink url='/transactions/' + actualOccurrenceTransactionId?c + '/editFutureRepetitions' icon='move_up' localizationKey='repeating.button.edit.future' id='button-transaction-edit-future-occurrences' color='background-blue-baby' classes="${buttonEditFutureClasses}"/>
             </#if>
         </div>