Fix cases when video did not stop at the end