fix #293. fix segafault trade order window.