fix popup on td will cause abnormal when closing window