Fix with_retries.