Fix bug in API controller result.