fixed a control structure error
Merge pull request #21 from ajstanley/modular

fixed a control structure error