Fixes video number of generated frames.