diff --git a/gwcelery/tasks/external_skymaps.py b/gwcelery/tasks/external_skymaps.py
index efd57a215b8c0570337c04733c75f149c8ee6f10..467334874393ecbbca412ab7e4e77ef732bdc54b 100644
--- a/gwcelery/tasks/external_skymaps.py
+++ b/gwcelery/tasks/external_skymaps.py
@@ -7,6 +7,7 @@ from celery import group
 #  import astropy.utils.data
 import numpy as np
 from ligo.skymap.io import fits, read_sky_map, write_sky_map
+from ligo.skymap.distance import parameters_to_marginal_moments
 import gcn
 import healpy as hp
 import lxml.etree