Fix output stream duplicate for old spawner compatibility