huge bug in format_fit_results