Not sure of what you're describing, but a (dangerous, annoying) TWS defaulting behavior is to take the first marketable quote available, when it writes a ticket. If (like today) you're looking to sell at the ask, and the shaky market fails to show an offer as your finger hits the hotkey, TWS...