Wrong distance map

I have a weird problem with distancemaps. I am in a Python 3.7 environment with SITK 2.2 (SITK 2.3 not supported on Python 3.7). I was able to run sitk.SignedMaurerDistanceMap and sitk.SignedDanielssonDistanceMap alternately depending on user preference, but now if I run a sitk.SignedMaurerDistanceMap I get the results and voronoi graph from sitk.SignedDanielssonDistanceMap. sitk.ApproximateSignedDistanceMap just hangs. I am casting to UInt8.

seeds = sitk.ConnectedComponent(sitk.Cast(filtered_eroded, sitk.sitkUInt16) 
                                != sitk.Cast(filtered_eroded, sitk.sitkUInt16)[0, 0, 0])
seeds = sitk.Cast(seeds, sitk.sitkUInt8)
seeds_outfile = (f'{args_features.output_dir}/{model}_seeds.seg.nrrd')
sitk.WriteImage(seeds, seeds_outfile, 
                imageIO='NrrdImageIO', useCompression=True)
if args_features.distancemap == 'smd':
    print('Creating a Watershed Signed Maurer Distance Map')
    dist_img = sitk.SignedMaurerDistanceMap(seeds !=0, insideIsPositive=False, squaredDistance=False, useImageSpacing=True)
elif args_features.distancemap == 'dd':
    print('Creating a Voronoi Danielsson Distance Map')
    dist_img = sitk.SignedDanielssonDistanceMap(seeds !=0, squaredDistance=False, useImageSpacing=True)
elif args_features.distancemap == 'asd':
    print('Creating a Approximate Signed Distance Map')
    dist_img = sitk.ApproximateSignedDistanceMap(seeds !=0, 0, 1)
else:
    print('Choose between watershed routines in the env.txt file.') 
#dist_img = sitk.SignedDanielssonDistanceMap(seeds !=0, squaredDistance=False, useImageSpacing=True)
#dist_img = sitk.SignedMaurerDistanceMap(seeds, squaredDistance=False, useImageSpacing=True)
ws = sitk.MorphologicalWatershedFromMarkers(dist_img, seeds, markWatershedLine=True)
ws_outfile = (f'{args_features.output_dir}/{model}_ws.nrrd')
if os.path.exists(ws_outfile):
    os.remove(ws_outfile)
sitk.WriteImage(sitk.Cast(ws, sitk.sitkUInt16), ws_outfile, imageIO='NrrdImageIO', useCompression=True)

Nevermind, I was mixing up distance maps with watershed patterns. All good.