diff --git a/src/effects/ObjectDetection.cpp b/src/effects/ObjectDetection.cpp
index de91c7a7..9204a951 100644
--- a/src/effects/ObjectDetection.cpp
+++ b/src/effects/ObjectDetection.cpp
@@ -165,9 +165,8 @@ std::shared_ptr ObjectDetection::GetFrame(std::shared_ptr frame, i
Clip* childClip = parentTimeline->GetClip(trackedObject->ChildClipId());
if (childClip){
std::shared_ptr f(new Frame(1, frame->GetWidth(), frame->GetHeight(), "#00000000"));
- std::shared_ptr childClipFrame = childClip->GetFrame(f, frame_number);
// Get the image of the child clip for this frame
- std::shared_ptr childClipFrame = childClip->GetFrame(frame_number);
+ std::shared_ptr childClipFrame = childClip->GetFrame(f, frame_number);
childClipImages.push_back(childClipFrame->GetImage());
// Set the Qt rectangle with the bounding-box properties