Fix bug: close status window