fixed removestreams bug