imq bug fix