diff --git a/src/plot.jl b/src/plot.jl
index 00fec0f49830dd9fb7e219fa815511e93554ec13..13e06e707c8d7c8f3504920fc8605d9ee75d932f 100644
--- a/src/plot.jl
+++ b/src/plot.jl
@@ -28,7 +28,7 @@ function SinglePlotLine(control_points::AbstractVector{<:Tuple}, duration::Numbe
     end
     if times[end] < duration
         push!(times, duration)
-        push!(amplitudes, duration)
+        push!(amplitudes, 0.)
     end
     return SinglePlotLine(times, amplitudes, [], [])
 end