Fixed a problem in retry order