fixing streams