Fix restoring state after playing video
when first or last video was selected.