fixed MemWStream Bug