Fix fit_component now working when plot window is not open