fix a typo in the imq module (patch from #2005)