API rate limit fixes