Fixed bug in getRemainingRateLimit.