fixed a bug in the semi major axis calculation of comets