Fix attempt state machine