TEIID-2614 ensuring variable setting in the other scope