Fix the number of attempts