fix formatting bug on stream