fix bug on stream type