fix video upload bugs