fixing bug in handling streaming arguments