Help - mp4.tmp file with camera.record service?

I’ve got an automation to record the camera when the doorbell rings, but when I look at the location where the mp4 file should be saved, it has a weird tmp extension:
deurbel_20230510-113016.mp4.tmp

There are no errors and the trace timeline looks like this:

(camera.deurbel) turned streaming
22 seconds later
(camera.deurbel) turned idle
Finished at 10 mei 2023 om 13:32:04 (runtime: 27.89 seconds)

the code looks liks this:

         - service: camera.record
            data:
              filename: /media/doorbell/deurbel_{{ now().strftime("%Y%m%d-%H%M%S") }}.mp4
            target:
              device_id: 4b8d02d3a335deb87fd686af9f03c627

is there a solution for this? I expect the mp4 to be saved and not the tmp extension.
thanks

no one can help?