fix loop variable name white space issue with dynamic expr