Fix implementation of stream decompression