Small improvement in APIObject.m