Fix bug when referencing limits
Merge pull request #40 from fqqb/fix-limit

Fix bug when referencing limits