diff --git a/MAC/Deployment/data/Coordinates/make_conf_files.py b/MAC/Deployment/data/Coordinates/make_conf_files.py
index 9190102cf68371ff8ceb6ac10bdd0773be545a47..b045af350197ff1c34f332ba258c1f07e18d6178 100755
--- a/MAC/Deployment/data/Coordinates/make_conf_files.py
+++ b/MAC/Deployment/data/Coordinates/make_conf_files.py
@@ -38,11 +38,13 @@ def print_help():
 def writeHBADeltas(station,deltas):
     cursor.execute("select * from get_field_rotation(%s, %s)", (station, 'HBA'))
     record = cursor.fetchone()
-    if record != None:
-        rotation = degrees(float(record[2]))
-    else:
-	print "Could not find field rotation for station",station
-        exit(1)
+    if record == None:
+       cursor.execute("select * from get_field_rotation(%s, %s)", (station, 'HBA0'))
+       record = cursor.fetchone()
+       if record == None:
+  	 print "Could not find field rotation for station",station
+         exit(1)
+    rotation=degrees(record[2])
     filename = '../StaticMetaData/iHBADeltas/%s-iHBADeltas.conf' %(str(station).upper())
     f = open(filename,'w')
     f.write('#\n')