Fix MainCtrl reference