liblattice fixes