Fix bug in attempt incrementer.