retry bug fix