Minor fix on API controller.