fixing crash when sumw2 is called more than one time