Question regarding Bracket Orders

I’m still learning so excuse my ignorance, but I’m trying to understand how the following situation can occur, and more importantly, how to prevent it from happening again.

In the above you can see that I placed a bracket order to buy with a take profit.limit_price and a stop_loss. The buy was filled at $177.127 but shortly thereafter, a sell limit was filled with a price below the buy price ($177.09). The rules guarantee that a limit_price is >= base_price + 0.01 so it should be impossible for me to take a profit and lose money.

How is this possible and how do I prevent such things from happening?

thanks

Can I please have my SRN number

I’m still getting this strange behavior. If anyone can clarify what is going on and how to avoid it, that would be much appreciated.