various fixes in the HLTOUT treatment