Fix project selection in main window