temporary patch to fix UNION query enumeration