diff --git a/src/TimerCallback.cpp b/src/TimerCallback.cpp
index 013184880ff2b37ae81c9deb2250261b46e304a6..416ed69b1b0344e5edb9bb204444b2e37e61e4d5 100644
--- a/src/TimerCallback.cpp
+++ b/src/TimerCallback.cpp
@@ -175,7 +175,12 @@ void TimerCallback::Execute(vtkObject *caller, unsigned long eventId,
 #endif
                             extern_glyphs_pedestrians_3D->Update();
                         }
-                        minFrame = frame->GetFrameElements()[0]->GetMinFrame();
+                        auto FrameElements =  frame->GetFrameElements();
+                        if(FrameElements.size())
+                             minFrame = frame->GetFrameElements()[0]->GetMinFrame();
+                        else
+                             minFrame = 0;
+
                         frameNumber += minFrame;
                         if(SystemSettings::getShowTrajectories()) {
                             const std::vector<FrameElement *> &elements=frame->GetFrameElements();