fix bug when video spans multiple pages it doesn't go directly to the end