Fix API controller type.