fix for non-profileable queries