fixing bug in writing histos syst