fix window handle