Fixed IOU bug in API.