Corrected nsites to bonds in error check.