Fix lattice plugin