diff --git a/src/components/delayed_events.jl b/src/components/delayed_events.jl
index f05861e6d1520522a7644c1ae51186441abf7816..b509350e56f949e1ef50bdbdcf8adc1292f6a24b 100644
--- a/src/components/delayed_events.jl
+++ b/src/components/delayed_events.jl
@@ -6,7 +6,7 @@ struct DelayedEvent{T<:EventComponent} <: EventComponent
     event :: T
     delay :: VariableType
     function DelayedEvent(event::EventComponent, delay=nothing)
-        new(event, get_free_variable(delay))
+        new{typeof(event)}(event, get_free_variable(delay))
     end
 end