try to fix hidden window on mac