fixed lz77 example