sign error in Ising model