Fix main controller.