Fix bug in video resizing