Correcting calculation of equimomental ellipsoid given moment of inertia