bugfix to create new stream