fix the hls crash bug