fix bug resuming video after pause, cleanup