Correct name of temporary variable in chi2 code