correct retry counter not being reset