Fixed compilation window closing existing windows.