fix for the number of weighted references exceeding 8 in HM weight analysis

--HG--
branch : stable