The chatbot does not run the actions after a form submission in a story

I am new to RASA and still don’t properly understand how the platform manages stories and rules. Here, my chatbot runs action_listen instead of the action listed in the story after the form submission. The chat goes ok up to the point where the code_form is executed and the user is asked to enter a code. When the user enters the code the action utter_auth_done gets executed, but the chatbot does not execute the action action_pay_bill which is the last action in the story. It runs action_listen and waits for user input. Probably it does not get back to the story when it’s done with executing the rule submit code form. Here is my story:

 - story: credit settlement with auth
   steps:
   - intent: greet
   - action: utter_greet
   - intent: settle_credit
   - slot_was_set:
       - name: null
   - action: auth_form
   - active_loop: auth_form
   - intent: inform_name
   - slot_was_set:
       - name
   - action: auth_form
   - active_loop: null
   - action: code_form
   - active_loop: code_form
   - slot_was_set:
       - code
       - requested_slot: null
   - action: code_form
   - active_loop: null
   - action: utter_auth_done
   - action: action_pay_bill

and here are my rules:

 - rule: activate authentication form
   steps:
   - intent: check_balance
   - action: auth_form
   - active_loop: auth_form

 - rule: submit auth form
   condition:
   - active_loop: auth_form
   steps:
   - action: auth_form
   - active_loop: null
   - action: code_form
   - active_loop: code_form
   wait_for_user_input: False

 - rule: submit code form
   condition:
   - active_loop: code_form
   - slot_was_set:
       - code
       - requested_slot: null
   steps:
   - action: code_form
   - active_loop: null
   - action: utter_auth_done
   wait_for_user_input: False

Can anyone help me to understand what goes wrong here?