Fixed a bug with the retries.