fix video resizing problem