fix retry cookie