Fix bugs of empty body (for loops)