fix ratelimit memory corruption