fix fit_coeffs for galex templates