Fix issue when updating order by API.