TEIID-2348 fix for conflicting loop names