fix control structure not allowed in <trans...> sections error