Fix api controller.