fix pointer's access to objectId