Fix video pause/resume bug