Fixed bug

Bug fixed for word_stream.