Fixed double (or more) outputting of fitting header