hopefully fix problem of offscreen windows