fix on assigning the global location of the local variable lattice to static fields