fix stream bug - Fixed #76