adds check for out of bouds indexes in sigs

this happens when the videos comes with ads, happened when running the
code in US