total frames fix
diff --git a/images/js/screenshot_skottie.js b/images/js/screenshot_skottie.js
index a881b5a..b7218cc 100644
--- a/images/js/screenshot_skottie.js
+++ b/images/js/screenshot_skottie.js
@@ -74,7 +74,7 @@
     } else {
       await puppeteerHelper.submitAndWaitForResponse(
         currentFrame,
-        currentFrame === animationData.tf,
+        currentFrame === totalFrames - 1,
         width,
         height,
       );