Corrected API Class Error