fix missing tail of lzw output