Hopefully fixed the MainController problem