Fixed a bug when delete stream at it becomes empty.