fixed log message
improved hls fragment boundary condition