minor retry count bug fix