diff --git a/html/poketube.ejs b/html/poketube.ejs
index b13d2f53..b03e2701 100644
--- a/html/poketube.ejs
+++ b/html/poketube.ejs
@@ -1245,7 +1245,7 @@ Offical Discord Server! :3
<% if (!qua) { %>
<%
let itag = '136'; // Default itag
- adaptiveFormats.forEach(format => {
+ inv_vid.adaptiveFormats.forEach(format => {
if (format.itag == '298') {
itag = '298';
}