fixing rate limit check