fix API class