Unindent for loop

Fixes #605
Merge pull request #606 from adamrp/issue_605

Unindent for loop