Fixed the `getLimit` method