Fix to video looping