fix stream deletion