Prevent infinite loop
Merge pull request #6 from parisholley/patch-1

Prevent infinite loop