fixed a bug in lzhlib causing crashes