Correctly set index attempt_max