little fix for stream