fixed: close window button [x] not work.