fixed bug in lz77v2