FIxed errors in new APIs