Clean up in inversedistribution.c