Xiao enters bootloader mode after uploading sketch

Hello,
I recently ran into a problem with my xiao SAMD21.

After uploading a sketch to a new board, the xiao enters bootloader mode and the com port changes.

How can this behaviour be changed? I have another xiao from the same 3 pices pack that I used earlier, that doesn’t havbe this problem…

Any suggestions would be welcome!