that is a known bug, but i don't have a good solution for it
it's because the detectors' enter and exit signals are not emitted in the same chronological way, so there's a chance that enter is done before exit