fix bug when sleeping while waiting for limit rate to be reset