fixed broken stream