fixed borderless main window bug