fix bug where nth function didnt iterate
Merge pull request #3 from coen-hyde/nth-fix

Bug fix where nth function didnt iterate