(HLS) fix some errors