fix window opening