fix a api response