fix a typo in main_controller