Fixed writing pcov to file while LSQ