update stat_on_lattice_net,
modify the template
bug fix