Fixed bug in stream decoder.