+ fixed a bug in the stream input