fix main variable to main_window