fix for :EndIf and :EndFor