fix a stream corruption issue with NGP when using CompressionFilter