Is the original entry still unfilled when you cancel it, or are you closing a position after it filled? Those need different checks.
I would reproduce it once in simulation with the Orders panel visible and record the entry and stop IDs, their states, and the remaining position quantity before and after the cancellation. That separates a chart marker from an order that is actually still working, and shows whether the stop belongs to that entry or was placed separately.
If an unfilled entry is confirmed cancelled but its attached stop remains working, send that order-ID sequence to support as a reproducible linkage problem. If the entry already filled, include how you closed the position. Which of those two sequences are you seeing?