fixed bug on hltloop