fix window and text