corrected size setting of the main window