 			var comprLen:int = 40000;
 			while (stream.total_in != data.length && stream.total_out < comprLen)
 			{
-				stream.avail_in = stream.avail_out = 1; // force small buffers
+				// force small buffers
+				stream.avail_in = 1;
+				stream.avail_out = 1;
+				
 				err = stream.deflate(JZlib.Z_NO_FLUSH);
 				checkError(stream, err, "deflate");
 			}

			stream.next_out = uncompressed;
			stream.next_out_index = 0;
			
			err = stream.inflateInit();
			checkError(stream, err, "inflateInit");

			var outcount:int = 0;
			while (stream.total_out < data.length && stream.total_in < data.length)
			{
				stream.avail_in = stream.avail_out = 1; /* force small buffers */
				err = stream.inflate(JZlib.Z_NO_FLUSH);
				if (err == JZlib.Z_STREAM_END)
				{
					trace("Zlib.uncompress. inflation stream ended");
					break;
				}
				
				outcount++;
				trace("Zlib.uncompress. outcount: " + outcount + ", stream.total_out: " + stream.total_out);

				if (!checkError(stream, err, "inflate"))
				{

		{
			data.position = 0;
			var uncompressed:ByteArray = new ByteArray();
			var outBytesLength:int = data.length * 2;
			
			var err:int;
			var i:int = 0;
			var j:int = 0;
