fixed infinite loop in case of IN clause in group field