Fix output format of Stream