fixed MainController