Index: /branches/eam_branches/ohana.20160226/src/relastro/src/GetAstromError.c
===================================================================
--- /branches/eam_branches/ohana.20160226/src/relastro/src/GetAstromError.c	(revision 39439)
+++ /branches/eam_branches/ohana.20160226/src/relastro/src/GetAstromError.c	(revision 39440)
@@ -76,11 +76,11 @@
   // weight to ensure the image is tied down to the 2mass frame
 
-  if (has2MASS && LoopWeight2MASS) {
+  if (has2MASS && LoopWeight2MASS && (Nloop >= 0)) {
     dPtotal = dPtotal / LoopWeight2MASS[Nloop];
   }
-  if (is2MASS && LoopWeight2MASS) {
+  if (is2MASS && LoopWeight2MASS && (Nloop >= 0)) {
     dPtotal = dPtotal / LoopWeight2MASS[Nloop];
   }
-  if (isTycho && LoopWeightTycho) {
+  if (isTycho && LoopWeightTycho && (Nloop >= 0)) {
     dPtotal = dPtotal / LoopWeightTycho[Nloop];
   }
