fix possible crash while getting the video url