fixed getLimits() for Api class