fix the api class missing