fix bug pin_id convert to object ID type