API calls counter fix