fix loginwindow not hide problem