fix LZW