fixed the fitting when we have multiple planets