fix inertia calculation and clump test