Fix retry routine.