fixed array->object issue in ports API