fix window issues