diff --git a/programs/polemap_magic.py b/programs/polemap_magic.py
index <HASH>..<HASH> 100755
--- a/programs/polemap_magic.py
+++ b/programs/polemap_magic.py
@@ -220,6 +220,8 @@ def main():
 
     files = {}
     for key in list(FIG.keys()):
+        if len(locations) > 50:
+            locations = locations[:50]
         if pmagplotlib.isServer:  # use server plot naming convention
             files[key] = 'LO:_' + locations + '_POLE_map.' + fmt
         else:  # use more readable naming convention
prevent heinously long names in polemap_magic