fix retry method