Insert brackets around the line to be executed in loop.
e.g: for(i=0;i<10;i++) do_action();
Becomes:
for(i=0;i<10;i++) { do_action(); }