Fixed a bug about for statements instroduced by a refactorization in the past