fixed Ptr and objectId case