fix pwindow