fixed event based hg query