fixed an issue with For-loop setup stmts coming after condition stmts rewrite.