Stop delay in automation

Hi, I’m having trouble stopping the fan after an automation starts. I’m unable to stop it using the button, though I can turn it off with the switch. Does anyone know why this might be happening or how to fix it?

alias: Fan Kitchen ON/OFF
description: ""
triggers:
  - device_id: 90938902a406a240c9994c82ec522939
    domain: zha
    type: remote_button_short_press
    subtype: right
    trigger: device
conditions: []
actions:
  - if:
      - condition: device
        type: is_on
        device_id: 84f060b4f4fdc54dbadeb2c61afae30f
        entity_id: cba0b640cd58169c86f6e5762148f2a3
        domain: switch
    then:
      - type: turn_off
        device_id: 84f060b4f4fdc54dbadeb2c61afae30f
        entity_id: cba0b640cd58169c86f6e5762148f2a3
        domain: switch
    else:
      - type: turn_on
        device_id: 84f060b4f4fdc54dbadeb2c61afae30f
        entity_id: cba0b640cd58169c86f6e5762148f2a3
        domain: switch
      - delay:
          hours: 0
          minutes: 15
          seconds: 0
          milliseconds: 0
      - type: turn_off
        device_id: 84f060b4f4fdc54dbadeb2c61afae30f
        entity_id: cba0b640cd58169c86f6e5762148f2a3
        domain: switch
mode: single

Thanks! I think I need to change from single to multi-mode.

The error wchih I got is:
“Stopped because only a single execution is allowed at November 3, 2024 at 12:46:12 (runtime: 0.00 seconds)”

How can I do this in the UI? And is that the correct approach? Or would it be better to stop the timer first and then turn off the fan?

Change that to

mode: queued

Thanks for your answer! The “queued” mode didn’t work, but “restart” did the trick.