fix using module name for get correct instance of lattice
pre lattice generation