fix rate limiting bug for wait time