Break infinite loop when tolerance 0 is used

With an increment of 0, there wouldn't be an increment...
Merge pull request #295 from v4hn/allow-tolerance-0

Break infinite loop when tolerance 0 is used