Fix bug when stream was offline during a short period