fix for "limit is not defined"
Merge pull request #3 from canc/master

fix for "limit is not defined"