Fix loop

fixes #16 - misplaced curly-brace