fix could not close window it transitoned by"CHANGE"